import Home from "../container/home"
import Connect from "../container/connect"
import Find from "../container/find"
// import My from "../container/my"
import {lazy} from "react"

import ChatBox from "../container/chatbox"
const MyPage = lazy(() => import('../container/my'));

const routes=[
    {
        path:'/',
        component:Home,
        
    },
    {
        path:'/connect',
        component:Connect
    },
    {
        path:'/find',
        component:Find
    },
    {
        path:'/my',
        component:MyPage
    },
    {
        path:'/chat',
        component:ChatBox
    }
]
export default routes